package com.team.register.enums;

/**
 * @Description:
 * @author: Aron
 * @date: 2021.10.14
 */
public enum PrintEnum {
    /**
     * 登录成功枚举
     */
    LOGIN_SUCCESS("密码正确，登录成功！", 1000),
    /**
     * 登录失败枚举
     */
    LOGIN_FAIL("密码错误，登录失败！", 1001),
    /**
     * 注册成功枚举
     */
    REGISTER_SUCCESS("注册成功！", 1002),
    /**
     * 注册失败枚举
     */
    REGISTER_FAIL("注册失败！", 1003);

    private final String message;
    private final int id;

    PrintEnum(String message, int id) {
        this.message = message;
        this.id = id;
    }

    public String getMessage() {
        return message;
    }

    public int getId() {
        return id;
    }

    @Override
    public String toString() {
        return "PrintEnum{" +
                "message='" + message + '\'' +
                ", id=" + id +
                '}';
    }
}
